
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class Resource</title>
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>A&nbsp;class&nbsp;for&nbsp;interacting&nbsp;with&nbsp;a&nbsp;resource.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="Resource-issueTokenGet"><strong>issueTokenGet</strong></a> = method(self, **kwargs)</dt><dd><tt>A&nbsp;description&nbsp;of&nbsp;how&nbsp;to&nbsp;use&nbsp;this&nbsp;function<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;origin:&nbsp;string,&nbsp;A&nbsp;parameter<br>
&nbsp;&nbsp;force:&nbsp;boolean,&nbsp;A&nbsp;parameter<br>
&nbsp;&nbsp;client_id:&nbsp;string,&nbsp;A&nbsp;parameter&nbsp;(required)<br>
&nbsp;&nbsp;alg:&nbsp;string,&nbsp;A&nbsp;parameter<br>
&nbsp;&nbsp;app_id:&nbsp;string,&nbsp;A&nbsp;parameter<br>
&nbsp;&nbsp;android_device_id:&nbsp;string,&nbsp;A&nbsp;parameter<br>
&nbsp;&nbsp;audience:&nbsp;string,&nbsp;A&nbsp;parameter<br>
&nbsp;&nbsp;hl:&nbsp;string,&nbsp;A&nbsp;parameter<br>
&nbsp;&nbsp;scope:&nbsp;string,&nbsp;A&nbsp;parameter&nbsp;(required)<br>
&nbsp;&nbsp;response_type:&nbsp;string,&nbsp;A&nbsp;parameter&nbsp;(required)<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;An&nbsp;object&nbsp;of&nbsp;the&nbsp;form<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;"consent":&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"scopes":&nbsp;[<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"description":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"detail":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"oauthClient":&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"iconUri":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"developerEmail":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;"token":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;&nbsp;&nbsp;"code":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;&nbsp;&nbsp;"issueAdvice":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;&nbsp;&nbsp;"idToken":&nbsp;"A&nbsp;String",<br>
&nbsp;&nbsp;}</tt></dd></dl>

<dl><dt><a name="Resource-tokeninfo"><strong>tokeninfo</strong></a> = method(self, **kwargs)</dt><dd><tt>A&nbsp;description&nbsp;of&nbsp;how&nbsp;to&nbsp;use&nbsp;this&nbsp;function<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;access_token:&nbsp;string,&nbsp;A&nbsp;parameter<br>
&nbsp;&nbsp;id_token:&nbsp;string,&nbsp;A&nbsp;parameter<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;An&nbsp;object&nbsp;of&nbsp;the&nbsp;form<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;"issued_to":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;To&nbsp;whom&nbsp;was&nbsp;the&nbsp;token&nbsp;issued&nbsp;to.&nbsp;In&nbsp;general&nbsp;the&nbsp;same&nbsp;as&nbsp;audience.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"user_id":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;The&nbsp;Gaia&nbsp;obfuscated&nbsp;user&nbsp;id.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"expires_in":&nbsp;42,&nbsp;#&nbsp;The&nbsp;expiry&nbsp;time&nbsp;of&nbsp;the&nbsp;token,&nbsp;as&nbsp;number&nbsp;of&nbsp;seconds&nbsp;left&nbsp;until&nbsp;expiry.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"access_type":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;The&nbsp;access&nbsp;type&nbsp;granted&nbsp;with&nbsp;this&nbsp;toke.&nbsp;It&nbsp;can&nbsp;be&nbsp;offline&nbsp;or&nbsp;online.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"audience":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;Who&nbsp;is&nbsp;the&nbsp;intended&nbsp;audience&nbsp;for&nbsp;this&nbsp;token.&nbsp;In&nbsp;general&nbsp;the&nbsp;same&nbsp;as&nbsp;issued_to.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"scope":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;The&nbsp;space&nbsp;separated&nbsp;list&nbsp;of&nbsp;scopes&nbsp;granted&nbsp;to&nbsp;this&nbsp;token.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;The&nbsp;email&nbsp;address&nbsp;of&nbsp;the&nbsp;user.&nbsp;Present&nbsp;only&nbsp;if&nbsp;the&nbsp;email&nbsp;scope&nbsp;is&nbsp;present&nbsp;in&nbsp;the&nbsp;request.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"verified_email":&nbsp;True&nbsp;or&nbsp;False,&nbsp;#&nbsp;Boolean&nbsp;flag&nbsp;which&nbsp;is&nbsp;true&nbsp;if&nbsp;the&nbsp;email&nbsp;address&nbsp;is&nbsp;verified.&nbsp;Present&nbsp;only&nbsp;if&nbsp;the&nbsp;email&nbsp;scope&nbsp;is&nbsp;present&nbsp;in&nbsp;the&nbsp;request.<br>
&nbsp;&nbsp;}</tt></dd></dl>

<dl><dt><a name="Resource-userinfo"><strong><a href="oauth2.v2.userinfo.html">userinfo</a></strong></a> = methodResource(self)</dt><dd><tt>A&nbsp;collection&nbsp;resource.</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table>
</body></html>